import { MockList } from 'graphql-tools'
import Mock from 'mockjs'
import Pick from './utils'

const { Random } = Mock
export default () => ({
  name: Pick(['xingjing', 'shuqian', 'peixuan']),
  email: Random.email(),
  updatedAt: Random.datetime(),
  createdAt: Random.datetime(),
  avatar: () => `http://xingjing.dudc.org/${Random.integer(1, 200)}.png`,
  projects: () => new MockList([6, 12]),
})
